package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

/**
 * 字符流
 *
 */
public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("osw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("我真的栓Q!");
        osw.write("我真的会谢!");
        osw.close();
    }
}
